package com.beiding.codecreater.render.java.boframe.common;

public class Field {  private String hName;
    private String name;
    private String typeClass;
    private Class _type;
    private Integer length;
    public void setName(String name) {
        this.name = name;
        this.hName = name.substring(0, 1).toUpperCase();
        if (name.length() > 1) {
            this.hName += name.substring(1);
        }
    }

    Class get_type() {
        return _type;
    }

    public String gethName() {
        return hName;
    }
    public String getName() {
        return name;
    }
    public String getTypeClass() {
        return typeClass;
    }
    public Field(Class _type, String name) {
        this._type = _type;
        setName(name);
        this.typeClass = _type.getSimpleName();
    }

    public Field(Class _type, String name, Integer length) {
        this._type = _type;
        setName(name);
        this.typeClass = _type.getSimpleName();
        this.length = length;
    }

}
